package mr.ali.video.web.controller;


import mr.ali.video.web.model.CollectionYurt;
import mr.ali.video.web.service.ICollectionYurtService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-08-03
 */
@RestController
@RequestMapping("/web/collectionYurt")
public class CollectionYurtController {
    @Resource
    private ICollectionYurtService collectionYurtService;

    @GetMapping("/list")
    public List<CollectionYurt> list() {
        return collectionYurtService.getAllYurtData();
    }

}
